package sudroid.net2;

public class HttpException extends Exception
{
  private static final long serialVersionUID = 1720252751234195605L;
  private int statusCode = -1;

  public HttpException(Exception paramException)
  {
    super(paramException);
  }

  public HttpException(String paramString)
  {
    super(paramString);
  }

  public HttpException(String paramString, int paramInt)
  {
    super(paramString);
    this.statusCode = paramInt;
  }

  public HttpException(String paramString, Exception paramException)
  {
    super(paramString, paramException);
  }

  public HttpException(String paramString, Exception paramException, int paramInt)
  {
    super(paramString, paramException);
    this.statusCode = paramInt;
  }

  public static String getCause(int paramInt)
  {
    String str1;
    switch (paramInt)
    {
    default:
      str1 = "Other problems.";
    case 304:
    case 400:
    case 401:
    case 403:
    case 404:
    case 406:
    case 500:
    case 502:
    case 503:
    }
    while (true)
    {
      String str2 = String.valueOf(paramInt);
      return str2 + ":" + str1;
      str1 = "";
      continue;
      str1 = "The request was invalid.  An accompanying error message will explain why. This is the status code will be returned during rate limiting.";
      continue;
      str1 = "Authentication credentials were missing or incorrect.";
      continue;
      str1 = "The request is understood, but it has been refused.  An accompanying error message will explain why.";
      continue;
      str1 = "The URI requested is invalid or the resource requested, such as a user, does not exists.";
      continue;
      str1 = "Returned by the Search API when an invalid format is specified in the request.";
      continue;
      str1 = "Something is broken.  Please post to the group so the sina news team can investigate.";
      continue;
      str1 = "Server is down or being upgraded.";
      continue;
      str1 = "Service Unavailable: The servers are up, but overloaded with requests. Try again later. The search and trend methods use this to indicate when you are being rate limited.";
    }
  }

  public int getStatusCode()
  {
    return this.statusCode;
  }

  public boolean isExceptionWrapper()
  {
    if (getCause() != null);
    for (int i = 1; ; i = 0)
      return i;
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.net2.HttpException
 * JD-Core Version:    0.6.0
 */